package com.jyx.designpatterns.policy;


public class SuperMan {
	public ComputableStrategy strategy;

	public double getPersonScore(double[] a) {
		if(strategy !=null)
			return strategy.computeScore(a);
		else
			return 0;
	}

	public ComputableStrategy getStrategy() {
		return strategy;
	}

	public void setStrategy(ComputableStrategy strategy) {
		this.strategy = strategy;
	}

	

}